﻿using Cl.Entity.DataBaseEntity.User;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Cl.Model.DataBaseEntityDtos.User.UserHistorys
{
    public class UserHistoryOutDto
    {
        public UserHistoryOutDto(UserHistory x)
        {
            CreateTime = x.CreateTime;
            CreateName = x.CreateUser.UserName;
            ChangesContext = x.ChangesContext;
            OldValue = x.OldValue;
            NewValue = x.NewValue;
        }


        public string CreateName { get; set; }
        public DateTime CreateTime { get; set; }


        public string ChangesContext { get; set; } = string.Empty;


        public string OldValue { get; set; } = string.Empty;


        public string NewValue { get; set; } = string.Empty;


    }
}
